package com.dy.lock.screen.service;

import java.util.List;

import com.dy.lock.screen.pojo.SmsAuthCodeInfo;
import com.dy.lock.screen.scoket.Head;

/**
 * 短信验证码service
 * 
 * @author java
 * 
 */
public interface SmsAuthCodeService {

	/**
	 * 保存信息
	 * 
	 * @param smsAuthCode
	 * @param head
	 * @return
	 */
	public int save(SmsAuthCodeInfo smsAuthCode, Head head);

	/**
	 * 通过主键查询信息
	 * 
	 * @param id
	 * @return
	 */
	public SmsAuthCodeInfo queryByPrimaryKey(String id, Head head);

	/**
	 * 根据手机号码和验证码查询
	 * 
	 * @param info
	 * @return
	 */
	public SmsAuthCodeInfo queryByMobileAndCode(String mobile, String authCode,
			Head head);

	/**
	 * 查询当天获取到的验证码
	 * 
	 * @param info
	 * @param head
	 * @return
	 */
	public List<SmsAuthCodeInfo> queryByMobile(String mobile, Head head);

}
